package com.junbao.message.domain.enums;

/**
 * 消息确认状态
 * @author yilin
 *
 */
public enum MessageConfirmStatus {

	TURE("T","发送"),FALSE("F","不发送");
	
	private String code;
	
	private String message;
	
	MessageConfirmStatus(String code,String message){
		this.code = code;
		this.message = message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
	public static MessageConfirmStatus getMessageConfirmStatusByCode(String code){
		switch (code) {
		case "T":
			return TURE;
		case "F":
			return FALSE;
		}
		return null;
	}
}
